package com.qcby.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Exam {
    private Integer id;
    private String name;
    private String creator;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createtime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime examtime;
    private String status;
    private Integer page;
    private Integer pageSize;
    private String remark;
    private String difficulty;
    private String type;
    private Integer duration;
    private Integer totalScore;
    private String subject;
    private List<Question> questions;
    private List<ErrorCollection> wrongQuestions;
    private Integer sid;
}
